package com.sgzn.sgpay.model.request;

import com.sgzn.sgpay.model.request.able.SgsReqAble;
import com.sgzn.sgpay.persistence.domain.TMerchantDiscountRule;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;
import java.util.List;

/**
 * 上分请求
 * @author zhongzhongyong
 * @version Id: SgsIncreaseCreditRequest.java, v 0.1 2018/4/22 10:21 zhongzhongyong Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsIncreaseCreditRequest extends SgsUserBaseRequest implements SgsReqAble{

    /**
     * 设备号
     */
    @Length(max = 32)
    @NotBlank(message = "设备号不能为空")
    private String deviceId;

    /**
     * 消费积分
     */
    @NotBlank(message = "消费积分不能为空")
    private String trsAmount;

    //----------------内部参数------------------
    /**
     * 优惠规则
     */
    private  List<TMerchantDiscountRule> ruleList;

    /**
     * 用户累计消费
     */
    private BigDecimal totalRecordAmount;

    /**
     * 已经赠送的优惠级别
     */
    private int hadDiscountLevel;

    /**
     * 归属商户ID
     */
    private String merchantId;

}
